{include file='common/home' }

<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2>
				<i class="halflings-icon white user"></i>
				<span class="break"></span>Members</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting">
					<i class="halflings-icon white wrench"></i>
				</a>
				<a href="#" class="btn-minimize">
					<i class="halflings-icon white chevron-up"></i>
				</a>
				<a href="#" class="btn-close">
					<i class="halflings-icon white remove"></i>
				</a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
					<tr>
						<th>ID</th>
						<th>andorer_link</th>
						<th>ios_link</th>
						<th>链接</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="$link_info" id="v"}
					<tr>
						<td>{$v.link_id}</td>
						<td class="center">{$v.link_href_andorer}</td>
						<td class="center">{$v.link_href_ios}</td>
						<td class="center">
							download.xiusho.com/index/index/index/id/{$v.link_id}
						</td>
						<td class="center">
							<a class="btn btn-info" href="updata/id/{$v.link_id}">
								<i class="halflings-icon white edit"></i>
							</a>
							<a class="btn btn-danger" onclick="deletes({$v.link_id})">
								<i class="halflings-icon white trash"></i>
							</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</div>
	</div>
	<!--/span-->

</div>
<!--/row-->

<!-- <script src="Public/static/js/jquery-3.2.1.min.js"></script> -->
<script>

	function deletes(id) {


		$.post('/index/Admin/delete_link', { id: id }, function (data) {
			if (data.code == 0) {
				alert("删除失败");
			} else {
				alert('删除成功');
			}
		});
	}



</script> 
{include file='common/bottom'}